babl-verify: make it compile on win32, by making setenv use putenv
authorØyvind Kolås <pippin@gimp.org>
Mon, 21 Nov 2016 12:44:51 +0000 (13:44 +0100)
committerØyvind Kolås <pippin@gimp.org>
Mon, 21 Nov 2016 12:44:55 +0000 (13:44 +0100)
tools/babl-verify.c

index e58dc85bffe435da28e3d5fd6fc73eac14b98de2..3e2a7e4399f28cd5a58b88228b6a3c75314b8a07 100644 (file)
@@ -2,6 +2,10 @@
 #include <stdlib.h>
 #include "babl/babl.h"
 
+#ifdef _WIN32
+#define setenv(a,b,c)  putenv((a),(b))
+#endif
+
 int main (int argc, char **argv)
 {
   if (argc != 3)